/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.di.ban.jr.rest.test;

import com.alibaba.fastjson.JSONObject;

/**
 *
 * @author zwlin
 */
public class jsontent {

	public static void main(String[] args) {
		String src = "{	\n"
				+ "\"opid\":\"121221134\",\n"
				+ "\"sendtime\": 1234567890,\n"
				+ "\"datatype\":\"dayhot\",\n"
				+ "	\"data\": {\n"
				+ "		\"createtime\":\"2016-11-15 14:32:00\",\n"
				+ "		\"code\":200,\n"
				+ "\"desc\":\"成功\",\n"
				+ "		 \"list\":[\n"
				+ "			{\n"
				+ "				\"sortId\": 1,   \n"
				+ "				\"Title\": \"特朗普当选美国总统\",  \n"
				+ "				\"hotValue\": 380 ,\n"
				+ "\"link\": \"http://mp.weixin.qq.com/s?__biz=MzA4NTg4Mjk3Ng==&mid=2680225852&idx=2&sn=a00ce884eeef0453fab4d1dea9de5fe7#rd\",\n"
				+ "\"content\": \"<p>sdfsdf</p>\"\n"
				+ "			},\n"
				+ "			{\n"
				+ "				\"sortId\": 2,\n"
				+ "				\"Title\": \"取暖时这些事一定要小心\",\n"
				+ "				\"hotValue\": 318,\n"
				+ "\"link\": \"http://mp.weixin.qq.com/s?__biz=MzA4NTg4Mjk3Ng==&mid=2680225852&idx=2&sn=a00ce884eeef0453fab4d1dea9de5fe7#rd\",\n"
				+ "\"content\": \"<p>sdfsdf</p>\"\n"
				+ "			}\n"
				+ "		 ]\n"
				+ "	}\n"
				+ "}";
		JSONObject obj = JSONObject.parseObject(src);
		System.out.println(obj);
	}
}
